using System;
using System.Collections.Generic;
using System.Text;

namespace SEGIService.SGModel
{
    /// <summary>
    /// 账单响应模型
    /// </summary>
    public class ArrearsResponseModel
    {
        /// <summary>
        /// 响应代码
        /// </summary>
        public string code { get; set; }

        /// <summary>
        /// 响应消息
        /// </summary>
        public string message { get; set; }

        /// <summary>
        /// 房子10总数据
        /// </summary>
        public sigeArrearshouse10sum1 data { get; set; }
    }
    public class sigeArrearshouse10sum1
    {
        /// <summary>
        /// 房屋单据总数据列表
        /// </summary>
        public List<sigeArrearshouse10sum2> houseBills { get; set; }
    }
    public class sigeArrearshouse10sum2
    {
        /// <summary>
        /// 房屋id
        /// </summary>
        public int houseId { get; set; }

        /// <summary>
        /// 房屋名称
        /// </summary>
        public string houseName { get; set; }
        /// <summary>
        /// 账单数据列表
        /// </summary>
        public List<sigeArrearshouse3> custBills { get; set; }
    }
    public class sigeArrearshouse3
    {
        /// <summary>
        /// id
        /// </summary>
        public int custId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string custName { get; set; }
        /// <summary>
        /// 账单数据列表
        /// </summary>
       // public List<sigeArrearshouse4> monthBills { get; set; }
    }
    public class sigeArrearshouse4
    {
        /// 账单数据列表
        /// </summary>
        public List<sigeArrearshouse5> feeItemTypeBills { get; set; }
    }
    public class sigeArrearshouse5
    {
        /// <summary>
        /// 欠费项目名称
        /// </summary>
        public string feeItemName { get; set; }
        /// <summary>
        /// 欠费项目开始时间
        /// </summary>
        public string billDateStart { get; set; }
        /// <summary>
        /// 欠费项目结束时间
        /// </summary>
        public string billDateEnd { get; set; }
        /// <summary>
        /// 账单数据列表
        /// </summary>
        public List<ArrearsDataModel> details { get; set; }
    }
    /// <summary>
    /// 账单数据模型
    /// </summary>
    public class ArrearsDataModel
    {
        /// <summary>
        /// 机构ID
        /// </summary>
        public long organId { get; set; }

        /// <summary>
        /// 房屋ID
        /// </summary>
        public long houseId { get; set; }

        /// <summary>
        /// 房屋名称
        /// </summary>
        public string houseName { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        public long custId { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string custName { get; set; }

        /// <summary>
        /// 账单对象类型
        /// </summary>
        public int billObjType { get; set; }

        /// <summary>
        /// 账单对象类型名称
        /// </summary>
        public string billObjTypeName { get; set; }

        /// <summary>
        /// 资源实例ID
        /// </summary>
        public long resInstId { get; set; }

        /// <summary>
        /// 资源实例名称
        /// </summary>
        public string resInstName { get; set; }

        /// <summary>
        /// 账单周期
        /// </summary>
        public int billingCycle { get; set; }

        /// <summary>
        /// 账户项目ID
        /// </summary>
        public string acctItemId { get; set; }

        /// <summary>
        /// 费用
        /// </summary>
        public decimal fee { get; set; }

        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal lfree { get; set; }

        /// <summary>
        /// 账单开始日期
        /// </summary>
        public string billDateStart { get; set; }

        /// <summary>
        /// 账单结束日期
        /// </summary>
        public string billDateEnd { get; set; }

        /// <summary>
        /// 楼栋ID
        /// </summary>
        public long buildId { get; set; }

        /// <summary>
        /// 楼栋名称
        /// </summary>
        public string buildName { get; set; }

        /// <summary>
        /// 单元ID
        /// </summary>
        public long unitId { get; set; }

        /// <summary>
        /// 单元名称
        /// </summary>
        public string unitName { get; set; }

        /// <summary>
        /// 税率
        /// </summary>
        public decimal taxRate { get; set; }

        /// <summary>
        /// 税费
        /// </summary>
        public decimal taxFee { get; set; }

        /// <summary>
        /// 费用项目类型ID
        /// </summary>
        public long feeItemTypeId { get; set; }

        /// <summary>
        /// 费用项目名称
        /// </summary>
        public string feeItemName { get; set; }

        /// <summary>
        /// 对象类型
        /// </summary>
        public int objType { get; set; }

        /// <summary>
        /// 对象ID
        /// </summary>
        public long objId { get; set; }

        /// <summary>
        /// 实际周期
        /// </summary>
        public int realCycle { get; set; }

        /// <summary>
        /// 费率字符串
        /// </summary>
        public string rateStr { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal amount { get; set; }

        /// <summary>
        /// 单位字符串
        /// </summary>
        public string unitStr { get; set; }

        /// <summary>
        /// 初始值
        /// </summary>
        public decimal initVal { get; set; }

        /// <summary>
        /// 结束值
        /// </summary>
        public decimal endVal { get; set; }

        /// <summary>
        /// 账户项目类型ID
        /// </summary>
        public long acctItemTypeId { get; set; }

        /// <summary>
        /// 任务类型
        /// </summary>
        public int taskType { get; set; }

        /// <summary>
        /// 账单费用
        /// </summary>
        public decimal billFee { get; set; }

        /// <summary>
        /// 操作人ID
        /// </summary>
        public long operatingId { get; set; }

        /// <summary>
        /// 操作人名称
        /// </summary>
        public string operatingName { get; set; }

        /// <summary>
        /// 账单规则ID
        /// </summary>
        public long? billRuleId { get; set; }

        /// <summary>
        /// 账单规则名称
        /// </summary>
        public string billRuleName { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string state { get; set; }

        /// <summary>
        /// 支付限制ID
        /// </summary>
        public long payLimitId { get; set; }

        /// <summary>
        /// 支付限制ID名称
        /// </summary>
        public string payLimitIdName { get; set; }

        /// <summary>
        /// 其他账单ID
        /// </summary>
        public long otBillId { get; set; }
    }
}